<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="renderer" content="webkit">

    <title>添加登录信息</title>

    <link href="${request.getContextPath()}/css/common/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="${request.getContextPath()}/css/font-awesome/font-awesome.css?v=4.3.0" rel="stylesheet">

    <link href="${request.getContextPath()}/css/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">

    <!-- Data Tables -->
    <link href="${request.getContextPath()}/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">

    <link href="${request.getContextPath()}/css/common/animate.css" rel="stylesheet">
    <link href="${request.getContextPath()}/css/common/style.css?v=2.2.0" rel="stylesheet">

    <style>
        /* Additional style to fix warning dialog position */
        #alertmod_table_list_2 {
            top: 900px !important;
        }
    </style>
    <script type="text/javascript">
		var contextPath = '${request.getContextPath()}';
	</script>
</head>
<body>
	<div>
		<#include "/public/header.html"/>
	</div>
    <div id="wrapper">
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>jqGird</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="index.html">主页</a>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>            
			<div class="wrapper wrapper-content  animated fadeInRight">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox ">
                            <div class="ibox-title">
                                <h5>项目登录信息</h5>
                            </div>
                            <div class="ibox-content">
                                <h4 class="m-t">账户列表</h4>
                                <div class="jqGrid_wrapper">
                                    <table id="table_list_2"></table>
                                    <div id="pager_list_2"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
			<div style="text-align:center;">
				<#include "/public/footer.html"/>
			</div>
        </div>
    </div>
    <!-- Mainly scripts -->
    <script type="text/javascript" src="${request.getContextPath()}/js/common/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="${request.getContextPath()}/js/common/json2.js"></script>
	<script type="text/javascript" src="${request.getContextPath()}/js/common/common.js"></script>
    
    <script src="${request.getContextPath()}/js/common/bootstrap.min.js"></script>
    <script src="${request.getContextPath()}/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="${request.getContextPath()}/js/plugins/metisMenu/jquery.metisMenu.js"></script>

    <!-- Peity -->
    <script src="${request.getContextPath()}/js/plugins/peity/jquery.peity.min.js"></script>

    <!-- jqGrid -->
    <script src="${request.getContextPath()}/js/plugins/jqgrid/i18n/grid.locale-cn.js"></script>
    <script src="${request.getContextPath()}/js/plugins/jqgrid/jquery.jqGrid.min.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="${request.getContextPath()}/js/hplus.js?v=2.2.0"></script>
    <script src="${request.getContextPath()}/js/plugins/pace/pace.min.js"></script>

    <script src="${request.getContextPath()}/js/plugins/jquery-ui/jquery-ui.min.js"></script>

    <!-- Page-Level Scripts -->
    <script>
        $(document).ready(function () {
            // Examle data for jqGrid
            var mydata = [
      			
            ];

            // Configuration for jqGrid Example 2
            $("#table_list_2").jqGrid({
            	url:contextPath+"/project/getCallBack",
            	mtype:'POST',
            	datatype:"json",
                data: mydata,
                datatype: "local",
                height: 350,
                autowidth: true,
                shrinkToFit: true,
                rowNum: 10,
                rowList: [10, 20, 30],
                colNames: ['序号', '企业ID', '登录账号', '登录密码', '平台类型', '创建时间', '状态'],
                colModel: [
                    {
                        name: 'id',
                        index: 'id',
                        editable: false,
                        width: 60,
                        sorttype: "int",
                        search: true
                    },
                    {
                        name: 'organizationId',
                        index: 'organizationId',
                        editable: true,
                        width: 90
                    },
                    {
                        name: 'loginName',
                        index: 'loginName',
                        editable: true,
                        width: 100
                    },
                    {
                        name: 'loginPwd',
                        index: 'loginPwd',
                        editable: true,
                        width: 80,
                        align: "right"
                    },
                    {
                        name: 'platformType',
                        index: 'platformType',
                        editable: true,
                        width: 80,
                        align: "right"
                    },
                    {
                        name: 'createTime',
                        index: 'createTime',
                        editable: true,
                        width: 80,
                        align: "right"
                    },
                    {
                        name: 'status',
                        index: 'status',
                        editable: true,
                        width: 100,
                        sortable: false
                    }
                ],
                pager: "#pager_list_2",
                viewrecords: true,
                caption: "登录信息",
                add: true,
                edit: true,
                addtext: 'Add',
                edittext: 'Edit',
                hidegrid: false
            });

            // Add selection
            $("#table_list_2").setSelection(4, true);

            // Setup buttons
            $("#table_list_2").jqGrid('navGrid', '#pager_list_2', {
                edit: true,
                add: true,
                del: true,
                search: true
            }, {
                height: 200,
                reloadAfterSubmit: true
            });

            // Add responsive to jqGrid
            $(window).bind('resize', function () {
                var width = $('.jqGrid_wrapper').width();
                $('#table_list_2').setGridWidth(width);
            });
        });
    </script>


</body>

</html>
